package com.msun.dao;

import com.github.pagehelper.Page;

import com.msun.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderListDao {
    //分页查询
    public Page<Map> selectByCondition(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("selectStatus") String selectStatus, @Param("selectType") String selectType, @Param("queryString") String queryString);
    //根据id查询预约信息
    public Order findById(Integer id);
    //修改预约状态
    public void changeStatus(Map map);
    //删除预约信息
    public void delete(Integer id);
    //删除时查询是否有外键关联
    public long deleteOrder1(Integer id);
    public long deleteOrder2(Integer id);
    public long deleteOrder3(Integer id);
    //修改
    public void edit(Map<String, Object> map);

}
